home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / networking / 293 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.6 KB

  1. Path: Starbase.NeoSoft.COM!not-for-mail
  2. From: askew@Starbase.NeoSoft.COM (Bill Askew)
  3. Newsgroups: comp.sys.amiga.networking
  4. Subject: Re: AmiTCP not releasing serial dev when done
  5. Date: 8 Jan 1996 17:43:57 -0600
  6. Organization: NeoSoft, Inc. +1 713 968 5800
  7. Message-ID: <4csa7t$i9a@Starbase.NeoSoft.COM>
  8. References: <4ck96g$pdr@shellx.best.com>
  9. NNTP-Posting-Host: starbase.neosoft.com
  10.  
  11. In article <4ck96g$pdr@shellx.best.com>,
  12. Mike Harlock <harlock@shellx.best.com> wrote:
  13. >I'm using AmiTCP/IP v4.1 with PPP and IPDial.
  14. >
  15. >Everything works great, except after using stopnet, it doesn't release
  16. >the serial.device, so IPDial can't access it to hang up, and I have to 
  17. >reboot to use another serial application.  I just get Serial Device Busy.
  18. >
  19. >Is it something with PPP?  (I'm using that common shareware one, unreged)
  20. >
  21. >help welcome.
  22. >--Mike
  23. >       __
  24. >      <  \   harlock@raindrop.com - Mike "Harlock" Massee
  25. >[\\\\\\(\ (:::<===========================================-
  26. >\<      >  \           Practice Random Kindness
  27. > \\    /    |        And Senseless Acts of Beauty
  28. >  `==='____/
  29. >
  30.  
  31. Here are examples of my startnet and stopnet files using IPDial1.9
  32.  
  33. --------------------- Startnet ------------------------------
  34.  
  35. .key IPADDRESS
  36. .bra {
  37. .ket }
  38. .def IPADDRESS 192.0.2.1
  39. IPDial ECHO AmiTCP:bin/neosoftlogin
  40. ; log in
  41. echo
  42. echo login: askew
  43. AmiTCP:bin/login -f askew
  44. AmiTCP:bin/umask 022
  45. AmiTCP:AmiTCP
  46. WaitForPort AMITCP
  47. ; Configure loop-back device
  48. AmiTCP:bin/ifconfig lo0 localhost
  49. ; Configure slip0
  50. echo AmiTCP:bin/ifconfig slip0 inet {IPADDRESS} 198.64.6.1 netmask 255.255.0.0
  51. AmiTCP:bin/ifconfig slip0 inet {IPADDRESS} 198.64.6.1 netmask 255.255.0.0
  52. ; Add route to this host
  53. AmiTCP:bin/route add {IPADDRESS} localhost
  54. ; Add route to the default gateway
  55. AmiTCP:bin/route add default 198.64.6.1
  56. AmiTCP:bin/route add 198.64.6.7
  57. setenv HOSTNAME rwaskew.neosoft.com
  58. setenv USER askew
  59. Assign TCP: Exists > NIL:
  60. IF Warn
  61.   Mount TCP: from AmiTCP:devs/Inet-Mountlist
  62. EndIf
  63. ; Start the internet `super server'
  64. run AmiTCP:bin/inetd
  65.  
  66. -------------------------- stopnet ---------------------------------------
  67.  
  68. .KEY FLUSH/S
  69. .BRA {
  70. .KET }
  71.  
  72. ; $Id: stopnet,v 3.1 1994/05/27 07:08:39 jraja Exp $
  73.  
  74. rx "address AMITCP; KILL" ; Send "KILL" to AmiTCP
  75.  
  76. If {FLUSH}
  77.  Wait 2 secs
  78.  If `rx "Say Show(ports, AMITCP)"` EQ 0
  79.   Avail >NIL: FLUSH
  80.  EndIf
  81. EndIf
  82. wait 2 secs
  83. IPDial AmiTCP:bin/neosoftHangup
  84. -- 
  85. ====================================================================
  86. R. William Askew                        A Harley Ride a Day,
  87. askew@Neosoft.com                    Helps Drive the Blues Away
  88.                                                RWA
  89. ====================================================================
  90.